package com.zw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zw.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 菜单权限表(SysMenu)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-02 16:55:47
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据角色id查询菜单信息
     * @param roleId
     * @return
     */
    Set<String> selectMenuPermsByRoleId(Long roleId);

    /**
     * 根据用户id查询菜单信息
     * @param userId
     * @return
     */
    Set<String> selectMenuPermsByUserId(Long userId);
}

